body {
    background: var(--base-clr);
    min-height: 100vh;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

main {
    overflow-x: hidden;
}


/* Header */

.planner-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.week-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.week-controls button,
.employee-filter select {
    height: 38px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f8f8f8;
    cursor: pointer;
}

.week-display {
    min-width: 120px;
    text-align: center;
}

.week-display strong {
    display: block;
    font-size: 18px;
}

.week-display span {
    font-size: 13px;
    color: #666;
}

.employee-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* Board */

.board-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    background-color: #fff;
    transition: 0.3s ease;
}

.board-wrapper::-webkit-scrollbar {
    height: 10px;
}

.board-wrapper::-webkit-scrollbar-track {
    background: #ddd;
    border-radius: 10px;
}

.board-wrapper::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 10px;
}

.wochenuebersicht {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    width: max-content;
}


/* Tagesboxen */

.tag-box {
    flex: 0 0 400px;
    width: 400px;
    height: 70vh;
    background: #e9e9e9;
    border-radius: 16px;

    padding: 15px;
    display: flex;
    flex-direction: column;
}


.tag-box h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}


/* Kartenbereich */

.cards {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

.cards::-webkit-scrollbar {
    width: 8px;
}

.cards::-webkit-scrollbar-track {
    background: #d9d9d9;
    border-radius: 10px;
}

.cards::-webkit-scrollbar-thumb {
    background: #9c9c9c;
    border-radius: 10px;
}


/* Karten */

.card {
    flex: 0 0 auto;
    height: 150px;
    background: white;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    user-select: none;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.card strong {
    font-size: 16px;
}

.card span {
    font-size: 14px;
}

.card small {
    color: #666;
}


/* Modal */

.card-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 999;
}

.card-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-modal-content {
    position: relative;
    width: min(700px, 90vw);
    min-height: 350px;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-modal-content h2 {
    margin-bottom: 20px;
}

.card-modal-content p {
    margin-bottom: 10px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: #ececec;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    background: #d7d7d7;
}


/* Responsive */

@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    .planner-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .week-controls {
        flex-wrap: wrap;
    }
    .employee-filter {
        width: 100%;
    }
    .employee-filter select {
        flex: 1;
    }
    .tag-box {
        flex: 0 0 400px;
    }
    .card-modal-content {
        width: 95vw;
    }
}